package com.wondertek.poms.service.vo;

import com.wondertek.poms.common.utils.validate.GroupType;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.groups.Default;
import java.util.Date;

@Data
public class EquityTreeVo {

    private Long id;

    @NotBlank(message = "权益数名不能为空", groups = {Default.class})
    @Length(message = "权益数名长度不能超过255个字节", max=255, groups = {Default.class, GroupType.Update.class})
    private String equityTreeName;

    @Length(message = "权益数名长度不能超过255个字节", max=255, groups = {Default.class, GroupType.Update.class})
    private String alias;

    /**
     *   0:不会自动发布   1：自动发布
     *   默认为0
     */
    @NotBlank(message = "是否自动发布不能为空", groups = {Default.class})
    @Length(message = "是否自动发布长度不能超过4个字节", max=4, groups = {Default.class, GroupType.Update.class})
    private int autoPublish;
}
